
@extends('frontend/layouts/default')
@section('title')
Từ điển danh mục
@endsection
@section('header2')
<div class="menu-second">
    @include('frontend/dictionary/partials/menu_second')
</div>
</div>    
@endsection
@section('content')
<!--content left-->
<div class="column-left">
    @include('frontend/dictionary/partials/content_left')
</div>
<!--end content left-->
<!--content right-->
<div class="width928 MgL10 FL">
    @include('frontend/dictionary/partials/search')
    <div class="MgT20">
        <div class="title">
            <label>Danh mục:&nbsp;</label>
            <span class="color55 font18">{{ucwords($data['category_lv0']->title)}}</span>
        </div>
        <div class="list-thuatngu">
            @foreach($data['listcategories'] as $categories_lv1_lv2)
            <ul>
                <div class="font-Bold font20"><a href="{{route('tu-dien-danh-muc',array('id'=>$categories_lv1_lv2[0][1]))}}">{{$categories_lv1_lv2[0][0]}}</a></div>
                @foreach ($categories_lv1_lv2[1] as $category_lv2)
                <li><a href="{{route('tu-dien-danh-muc',array('id'=>$category_lv2['id']))}}">{{$category_lv2['title']}}</a></li>
                @endforeach

            </ul>
            @endforeach
        </div> 
        @include('frontend/dictionary/partials/request')
    </div>
    <div class="MgT20">
        <div class="title">
            <label>Danh sách từ trong danh mục</label>
        </div>
        <div class="list-thuatngu">
            @include('frontend/dictionary/partials/listword')
        </div>
    </div>
</div>
<!--end content right-->
@if(Session::has('request_success'))
<script>
    alert("{{Session::get('request_success')}}");
</script>
@endif
<br><br><br><br><br><br><br><br><br><br>

@endsection